/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Library General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
 */

/**
 * @version coin.c 0.0.1
 * @package comoro
 * @author Dr.NP <np@bsgroup.org>
 *
 * Coin server header
 */

#include <evhttp.h>

#define DEFAULT_COIN_SRV_PORT					65003
#define SESSION_LIFETIME							900
#define MAX_REQUEST_URI_LENGTH					1024

/* BEGIN OF FUNCTION */
int coin_init();
void coin_request(struct evhttp_request *, void *);

int http_session_add(int, int, int, char *);
int http_session_del(int);
int http_session_get(char *);
int http_session_touch(int);
void http_session_check_cb(void *);
/* END OF FUNCTION */
